<template>
    <div>
        收藏页
        {{ this.$route.query.id }}
    </div>
</template>
<script>
export default {
    data() {
        return {
            list: [],
        };
    },
    methods: {},
    mounted() {
        this.$axios
            .post("/api/user/collect/addCollect", {
                user_id: 1404,
                product_id: "this.$route.query.id",
            })
            .then((res) => {
                console.log(res);
            });
    },
};
</script>
